home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d20 / fddev202.arc / C.ARC / EVENT.H < prev    next >
C/C++ Source or Header  |  1991-10-01  |  4KB  |  92 lines

  1. /*
  2. **  event.h (FrontDoor)
  3. **
  4. **  Copyright 1991 Joaquim H. Homrighausen. All rights reserved.
  5. **
  6. **  EVENT.FD definitions for FrontDoor 2.00+
  7. **
  8. **  Last revision:  91-10-02
  9. **                            
  10. **  -------------------------------------------------------------------------
  11. **  This information is not necessarily final and is subject to change at any
  12. **  given time without further notice
  13. **  -------------------------------------------------------------------------
  14. */
  15.  
  16. /*
  17. **  Day values, non-exclusive bit values
  18. **
  19. **  I.e. If the event was active on Monday and Tuesday, the day field
  20. **       would contain 0x03. If the event is active on all days, the
  21. **       day field should only contain 0x80.
  22. */
  23. #define MONDAY      0x01
  24. #define TUESDAY     0x02
  25. #define WEDNESDAY   0x04
  26. #define THURSDAY    0x08
  27. #define FRIDAY      0x10
  28. #define SATURDAY    0x20
  29. #define SUNDAY      0x40
  30. #define ALL         0x80
  31.  
  32.  
  33. /*
  34. **  Behavior, non-exclusive bit values
  35. **
  36. **  I.e. If an event had FREQ_OK and DO_PICKUP enabled, the behavior field
  37. **       would be 0x00000018L.
  38. **
  39. **       Ignore the "ifndef" directive below, it's only used when I compile
  40. **       FDSETUP.EXE on my system.
  41. */
  42. #ifndef _NOTEVENT_
  43. #define USERS_OK        0x00000001L        /* Allow users to interrupt event*/
  44. #define MAIL_EXIT       0x00000002L            /* Exit when mail is received*/
  45. #define CRASH_ONLY      0x00000004L                  /* Only send Crash mail*/
  46. #define FREQ_OK         0x00000008L           /* Honor inbound file requests*/
  47. #define DO_PICKUP       0x00000010L     /* Pickup mail during outbound calls*/
  48. #define ALLOW_PICKUP    0x00000020L    /* Allow calling nodes to pickup mail*/
  49. #define SEND_ONLY       0x00000040L   /* Send only, don't wait between calls*/
  50. #define RECV_ONLY       0x00000080L    /* Receive only, don't make any calls*/
  51. #define FORCED          0x00000100L  /* Event is forced and MUST be executed*/
  52. #define ENDNOMAIL       0x00000200L  /* End event when no more outgoing mail*/
  53. #define SENDTOCM        0x00000400L               /* Send to CM systems only*/
  54. #define SENDTONOCM      0x00000800L           /* Send to non-CM systems only*/
  55. #define ONLYONCE        0x00001000L    /* Only call a node once during event*/
  56. #define PICKUPFREQ      0x00002000L /* Honor file requests on outbound calls*/
  57. #define HOLDFREQ        0x00004000L /* Don't send file requests during event*/
  58.  
  59. /* .. gap .. */
  60.  
  61. #define DELETED         0x40000000L                 /* Never written to disk*/
  62. #define INACTIVE        0x80000000L
  63.  
  64.  
  65. /*
  66. **  The first record in EVENT.FD must be the EVENTBASE and have the tag
  67. **  field set to "@".
  68. */
  69. typedef struct
  70.     {
  71.     char    tag;                             /* Event tag A-Z (X==External) */
  72.     byte    day;           /* Days to execute event on, non-exclusive value */
  73.     char    mud,        /* '-'=Subtract, '+'= Add, '*'= Don't use eventbase */
  74.             s_hr,                          /* Starting hour, 24 hour format */
  75.             s_mi,                                        /* Starting minute */
  76.             l_hr,                         /* Length (hours), 24 hour format */
  77.             l_mi;                                        /* Length (minute) */
  78.     byte    level;       /* Errorlevel on X-events, ignored on non-X events */
  79.     dword   behave;                  /* Event behavior, non-exclusive value */
  80.     int     cost;          /* Maxmium cost of mail to go out, -1 don't care */
  81.     int     lastrun;                  /* Packed DOS date when last executed */
  82.     byte    RESERVED0;                                 /* Don't touch this! */
  83.     word    timer;            /* Delay between calls in seconds, 0==Default */
  84.     word    mincost;                 /* Minimum cost for messages to go out */
  85.     char    RESERVED1;                                 /* Don't touch this! */
  86.     }
  87.     EVENT, *EVENTPTR;
  88.  
  89. #endif
  90.  
  91. /* end of file "event.h" */
  92.